package de.ur.iw.wiki;

public class Link {

	private String name;
	private double weight = 1;
	
	private LinkInfo info = new LinkInfo();
	
	public Link(String name){
		this.name = name;
	}
	
	public Link(String name, double weight){
		this.name = name;
		this.weight = weight;
	}
	
	public void setWeight(double weight){
		this.weight = weight;
	}
	
	public double getWeight(){
		return weight;
	}
	
	public LinkInfo getInfo(){
		return info;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
	
	@Override
	public String toString() {
		return name;
	}
	
}
